﻿using System.Web.Mvc;

namespace xTeam.HengLe.Controller.Website
{
    public class WebsiteAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Website";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {
            context.MapRoute(
                "Website_default",
                "Website/{controller}/{action}.aspx",
                new { action = "Index", language = "zh" },
                new { language = "(zh|en)" }
            );

            context.MapRoute(
                "Website_language_default",
                "Website/{language}/{controller}/{action}.aspx",
                new { action = "Index", language = "zh" },
                new { language = "(zh|en)" }
            );
        }
    }
}
